<?php
session_start();
if(isset($_SESSION['id'])){
	$fn ='init'.$_SESSION['id'].'.php';
	require_once($fn);
}else{
	require_once('init.php');
}

if(SID) ErrerDisp('Cookieを有効にして下さい');
if(!$_SESSION) ErrerDisp('送信データがありません。');

function ConfDisp(){
global $inputs;
	switch(VIEWSTYLE){
	case 'Table':
		foreach( $inputs as $key => $value){
			echo convert_encode('<tr><th scope="row">'.$value.'</th><td>');
			echo $_SESSION[$key];
			echo convert_encode('</td></tr>');
		}
	break;
	
	case'List':
		foreach( $inputs as $key => $value){
			echo convert_encode('<dt>'.$value.'</dt><dd>');
			echo $_SESSION[$key];
			echo convert_encode('</dd>');
		}
	break;
	
	default:
		foreach( $inputs as $key => $value){
			echo convert_encode('<p><strong>'.$value.'</strong><span>');
			echo $_SESSION[$key];
			echo convert_encode('</span></p>');
		}
	}
}
?> 